package chances.framework.jpa.rest;

public class GetResponse<T extends Object> {
	private boolean exist;
	private T entity;
	
	public GetResponse(T entity ){
		if(entity==null){
			this.exist = false;
		}else{
			this.exist = true;
			this.entity = entity;
		}
	}
	public boolean isExist() {
		return exist;
	}
	public T getEntity() {
		return entity;
	}
	public void setExist(boolean exist) {
		this.exist = exist;
	}
	public void setEntity(T entity) {
		this.entity = entity;
	}
	

}
